<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登陆界面</title>
<link href="style_css/style.css" rel="stylesheet" type="text/css" />
</head>

<body style="background:url(images/login_bg1.jpg);">
<script src="JS/base.js" type="text/javascript"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="35" align="center" valign="top" background="images/login_t_bg.jpg"></td>
  </tr>
  <tr>
    <td align="center" valign="top" background="images/login_bg1.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_bg2">
        <tr>
          <td height="674" align="center" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_bg1">
              <tr>
                <td height="674" align="center" valign="top"><table width="844" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="55"></td>
                    </tr>
                  </table>
                  <table width="844" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="331" height="308" background="images/login_l.jpg"></td>
                      <td align="left" valign="top"><table width="513" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="137" background="images/login_t.jpg"><img src="images/loginTitle.jpg" width="509" height="56"/></td>
                          </tr>
                          <tr>
                            <td height="127" align="left" valign="top"><table width="513" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td align="left" valign="top" background="images/login_n_bg.jpg">
                                  <% Object obj=request.getAttribute("errorMessage"); %>
                                  <form method="post" action="logon?action=login" name="myForm" onSubmit="return checkForm(this);">                                      
                                      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_font">
                                      	<%if(obj!=null){ %>
                                      	<tr><td align="center" colspan="3"><div id="errMsg" style="color:red;font-weight:bold"><%=obj %></div></td></tr><%} %>
                                        <tr>
                                          <td width="25%" height="30" align="right" valign="middle">用户名：</td>
                                          <td width="75%" align="left" valign="middle"><input  type="text" name="userName" class="input1" /></td>
                                        </tr>
                                        <tr>
                                          <td width="25%" height="30" align="right" valign="middle">密  码：</td>
                                          <td align="left" valign="middle"><input  type="password" name="userPass" class="input1" /></td>
                                        </tr>
                                        <tr>
                                          <td height="35"></td>
                                          <td align="left" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                              <tr>
                                                <td width="28%" height="30" align="left" valign="middle"><input name="submit" value="登录" type="image" class="radio" src="images/login_dl.jpg" alt="登录" align="middle"/></td>
                                                <td width="72%" align="left" valign="middle"><input name="submit2" value="取消" type="image" class="radio" src="images/login_qx.jpg" onclick="this.form.reset();return false;" alt="取消" align="middle"/></td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                      </table>
                                    </form></td>
                                  <td width="163" height="127" background="images/login_r.jpg"></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr>
                            <td height="44" background="images/login_b.jpg"></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
